# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Deleting field 'Evenement.annule'
        db.delete_column('agenda_evenement', 'annule')

        # Adding field 'Evenement.publie'
        db.add_column('agenda_evenement', 'publie',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)


    def backwards(self, orm):
        # Adding field 'Evenement.annule'
        db.add_column('agenda_evenement', 'annule',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Deleting field 'Evenement.publie'
        db.delete_column('agenda_evenement', 'publie')


    models = {
        'agenda.association': {
            'Meta': {'ordering': "['nom']", 'object_name': 'Association'},
            'adresse': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'code_postal': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
            'cplt_adresse': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '254'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nom': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
            'telephone': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
            'ville': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'agenda.calendrier': {
            'Meta': {'ordering': "['nom']", 'object_name': 'Calendrier'},
            'association': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.Association']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nom': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'})
        },
        'agenda.evenement': {
            'Meta': {'ordering': "['debut', 'fin']", 'object_name': 'Evenement'},
            'calendrier': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.Calendrier']"}),
            'debut': ('django.db.models.fields.DateTimeField', [], {}),
            'fin': ('django.db.models.fields.DateTimeField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'publie': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'titre': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        }
    }

    complete_apps = ['agenda']